// JavaScript Document
var startime=24;  //夜间商务通的开始时间
var stoptime=8; //夜间商务通的结束时间
dateobject=new Date();
nowdate=dateobject.getHours();
var timeclass=0;
if(stoptime>startime)
{
	if(nowdate>=startime && nowdate<stoptime)
	{
		timeclass=1;
	}
	else
	{
		timeclass=2;
	}
}
else
{	
	if(nowdate>=startime || nowdate<stoptime)
	{
		timeclass=1;
	}
	else
	{
		timeclass=2;
		
	}
}


if(timeclass==1)
{

	function gh_close()
{
	$("#yjxs").hide();
	}
	
	function openZoosUrl(){
	  var host=document.location.host;
	  window.open("http://"+host+"/book/");
	} 
$(function(){
	$("#remark").css("height",$(document).height());  
	$("#remark").css("width",$(document).width());
	
	var myDate = new Date();
	var h=myDate.getHours(); 
	if(h>=24 || h<=8){
		$(".cjfd").show();
		$("#remark").css({display:"block"});
	}
	$(".cjfd_tit").click(function(){
		$(this).parent("div").hide();
		$("#remark").css({display:"none"});
		var t = setTimeout("open_cjfd()",15000);
	});
});
function open_cjfd(){
	$(".cjfd").show();
	$("#remark").css({display:"block"});
}
document.write('<style>');
document.write('*{padding:0px;margin:0px;-moz-box-sizing: border-box;-webkit-box-sizing: border-box;box-sizing: border-box;}');
document.write("#remark{background:#000;filter:alpha(opacity=60);opacity:0.6;position:fixed;top:0;left:0;z-index:999999999;display:none;width:100%;height:100%;}");
document.write('.cjfd{font-family:"宋体";text-align:left;display:none;z-index:9999999999;color:#333;font-size:14px;width:260px;padding:73px 20px 20px 20px;background:#e6e6e6 url(/swt/images/cjfd_1.jpg) no-repeat;margin-left:-150px;margin-top:-209px;position:fixed;top:50%;left:50%;}');
document.write(".cjfd_tit{position:absolute;top:-5px;right:5px;color:#fff;font-size:20px;cursor:pointer;}");
document.write('.cjfd h1{font-size:20px;color:red;text-align:center;line-height:24px;padding:20px 0px;}');
document.write('.cjfd h2{font-size:14px;color:red;line-height:17px;text-align:left;padding:0px 0px 10px;}');
document.write('.cjfd p{line-height:0.8rem;text-indent:2em; font-size:0.45rem}');
document.write('.cjfd form{padding-top:25px;}');
document.write('.cjfd form span{color:red;padding-right:5px;}');
document.write('.cjfd form h6{font-size:12px;text-align:center;font-weight:500;padding:4px 0px 20px;}');
document.write('.cjfd form input{width:131px;height:20px;line-height:20px;padding:0px 5px;font-size:14px;color:#333;background:#fff;border:1px solid #cbcbcb;margin-bottom:8px;}');
document.write('.cjfd form .submit{float:none;cursor:pointer;width:161px;height:27px;line-height:27px;color:#fff;font-size:14px;text-align:center;border:0 none;background:#3787db;margin-left:45px;}');
document.write('</style>');
document.write('<div id="remark"></div>');
document.write('<div class="cjfd">');
document.write('<div class="cjfd_tit" title="关闭">x</div>');
document.write('<h1>【夜间咨询公告】</h1>');
document.write('<h2>亲爱的访问者，晚上好!</h2>');
document.write('<p>当前医生未在线，请留下您的联系方式，我们会尽快给您回电。</p>');
document.writeln("<form onSubmit=\"return checkmy();EmpireCMSQInfoPostFun(document.add,\'9\'); \" method=post name=add action=\"http://kefu1.120fd.com/judgement/onlinesubscribe.html\" accept-charset=\"utf-8\">");
document.writeln("    <script src=\"http://kefu1.120fd.com/judgement/GetExpert.html?selectid=40\"></script>");
document.writeln("    <script src=\"http://kefu1.120fd.com/judgement/GetDisease.html?selectid=40\"></script>");
document.writeln("     <input type=\"hidden\" value=\"40\" name=\"sectionid\" id=\"keshi\"/>");
document.writeln("     <script type=\"text/javascript\">			");
document.writeln("	<!--");
document.writeln("						var url = document.referrer;");
document.writeln("						var thisurl= window.location.href;");
document.writeln("	<input type=\/\/\"hidden\/\/\" name=\/\/\"URL\/\/\" value=\"+url+\">");
document.writeln("<input type=\/\/\"hidden\/\/\" name=\/\/\"href\/\/\" value=\"+thisurl+\">");
document.writeln("	//-->");
document.writeln("");
document.writeln("</script>");
document.write('<span>*</span>患者姓名：<input type="text" name="name" /><br/>');
document.write('<span>*</span>联系电话：<input type="text" name="tel" /><br/>');
document.write('<span>*</span>就诊日期：<input type=\"date\" id=\"time\" value=\"\" name=\"orderTime\">');
document.write('<h6>注：电话信息准确，方便专家帮您看诊</h6>');
document.write('<input type="submit" value="提交信息" class="submit" />');
document.write('</form>');
document.write('</div>');
document.writeln("   </form>");

document.write('</div>');

}else{
	document.writeln("<script src=\"/swt/swt.js\" type=\"text/javascript\"></script>");

}
	
	
	
